#include "CSingaporeBusStopsView.hrh"
#include "CSingaporeBusGenericView.hrh"
#include <avkon.mbg>
#include <SingaporeBus_aif.mbg>

RESOURCE AVKON_VIEW r_singapore_bus_stops_view
	{
	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
	menubar = r_singapore_bus_stops_menu;
#if !defined(__SERIES60_3X__) || defined(__S60_50__)
	toolbar = r_singapore_bus_stops_toolbar;
#endif
	}

RESOURCE MENU_BAR r_singapore_bus_stops_menu
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_singapore_bus_stops_menu_pane; }
		};
	}



RESOURCE MENU_PANE r_singapore_bus_stops_menu_pane
    {
    items=
        {
        MENU_ITEM { command=ESingaporeBusShowMap; txt="Map"; },
        MENU_ITEM { command=ESingaporeBusRefreshPosition; txt="Refresh position"; },
        MENU_ITEM { cascade=r_singapore_bus_stops_mark_pane; txt="Mark"; },
        MENU_ITEM { cascade=r_singapore_bus_stops_pane; txt="Pane"; },
        MENU_ITEM { command=ESingaporeBusSettings; txt="Settings"; }
        };
    }

RESOURCE MENU_PANE r_singapore_bus_stops_pane
	{
	items =
		{
        MENU_ITEM { command=ESingaporeBusNewFavoritePane; txt="New"; },
        MENU_ITEM { command=ESingaporeBusDeleteFavoritePane; txt="Delete"; },
        MENU_ITEM { command=ESingaporeBusRenameFavoritePane; txt="Rename"; }
		};
	}


RESOURCE MENU_BAR r_singapore_bus_stops_mark_menu
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_singapore_bus_stops_mark_pane; }
		};
	}

RESOURCE MENU_PANE r_singapore_bus_stops_mark_pane
	{
	items =
		{
        MENU_ITEM { command=ESingaporeBusMarkOrigin; txt="Origin"; },
        MENU_ITEM { command=ESingaporeBusMarkDestination; txt="Destination"; },
        MENU_ITEM { command=ESingaporeBusMarkFavorite; txt="Favorite"; },
        MENU_ITEM { command=ESingaporeBusShowMap; txt="Map"; }
		};
	}


RESOURCE AKN_ICON_ARRAY r_singapore_bus_stops_icons
    {
    type = EAknIconArraySimple;
    bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
    icons =
        {
        AKN_ICON { iconId = EMbmSingaporebus_aifStar; maskId = EMbmSingaporebus_aifStar_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifFlag_orig; maskId = EMbmSingaporebus_aifFlag_orig_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifFlag_dest; maskId = EMbmSingaporebus_aifFlag_dest_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifStar_flag_orig; maskId = EMbmSingaporebus_aifStar_flag_orig_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifStar_flag_dest; maskId = EMbmSingaporebus_aifStar_flag_dest_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifBusstop; maskId = EMbmSingaporebus_aifBusstop_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifBusservice; maskId = EMbmSingaporebus_aifBusservice_mask; },
        AKN_ICON { iconId = EMbmSingaporebus_aifStopwatch; maskId = EMbmSingaporebus_aifStopwatch_mask; }
        };
    }

RESOURCE AVKON_TOOLBAR r_singapore_bus_stops_toolbar
    {
    flags = 0x00000080; //KAknToolbarFixed
//    flags = KAknToolbarFixed;
    items =
        {
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = ESingaporeBusShowMap;
            control = AVKON_BUTTON
                {
                flags = 0;
                states =
                    {
        					AVKON_BUTTON_STATE 
        							   {
        							   bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
        							   bmpid = EMbmSingaporebus_aifShowmap; 
        							   bmpmask = EMbmSingaporebus_aifShowmap_mask; 
        							   press_bmpid = EMbmSingaporebus_aifShowmap; 
        							   press_bmpmask = EMbmSingaporebus_aifShowmap_mask; 
        							   helptxt = "Map"; 
        							   }
                    };
                };
            },
 /*       TBAR_CTRL
            {
            type = EAknCtButton;
            id = ESingaporeBusRefreshAll;
            control = AVKON_BUTTON
                {
                flags = 0;
                states =
                    {
        					AVKON_BUTTON_STATE 
        							   {
        							   bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
        							   bmpid = EMbmSingaporebus_aifStopwatch; 
        							   bmpmask = EMbmSingaporebus_aifStopwatch_mask; 
        							   press_bmpid = EMbmSingaporebus_aifStopwatch; 
        							   press_bmpmask = EMbmSingaporebus_aifStopwatch_mask; 
        							   helptxt = "Refresh";
        							   }
                    };
                };
            },
            */
            TBAR_CTRL
                       {
                       type = EAknCtButton;
                       id = ESingaporeBusRefreshPosition;
                       control = AVKON_BUTTON
                           {
                           flags = 0;
                           states =
                               {
                   					AVKON_BUTTON_STATE 
                   							   {
                   							   bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
                   							   bmpid = EMbmSingaporebus_aifRefreshposition; 
                   							   bmpmask = EMbmSingaporebus_aifRefreshposition_mask; 
                   							   press_bmpid = EMbmSingaporebus_aifRefreshposition; 
                   							   press_bmpmask = EMbmSingaporebus_aifRefreshposition_mask; 
                   							   helptxt = "Refresh position";
                   							   }
                               };
                           };
                       },
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = ESingaporeBusSearch;
            control = AVKON_BUTTON
                {
                flags = 0;
                states =
                    {
                    AVKON_BUTTON_STATE
                        {
						   bmpfile = AVKON_BITMAP_FILE; 
						   bmpid = EMbmAvkonQgn_indi_find_glass; 
						   bmpmask = EMbmAvkonQgn_indi_find_glass_mask; 
						   press_bmpid = EMbmAvkonQgn_indi_find_glass; 
						   press_bmpmask = EMbmAvkonQgn_indi_find_glass_mask; 
						   helptxt = "Search"; 
                        }  
                    };
                };
            }
        };
    }
